<?php


class Helper extends  Base_Controller
{
	
	
	public function __construct()
	{
		parent::__construct();
		$this->load->model( 'helper_mdl', 'helper');
	}
	
	public function index()
	{
		//$this->load->view('helper');
		redirect( 'helper/about' );
	}
	
	public function view()
	{
		$a = $this->db->select('*')
				->from('tb_zixun')
				->where('id',6)
				->get()
				->row_array();
		print_r($a);
	}
	
	public function about()
	{
		$data['about'] = $this->helper->getByTag( 'about' );
		
		$this->load->view( 'about' ,$data);
		
	}
	
	public function join()
	{
		$data['about'] = $this->helper->getByTag( 'join' );
	
		$this->load->view( 'join' ,$data);
	}
	
	public function juan()
	{
		$data['about'] = $this->helper->getByTag( 'juan' );
	
		$this->load->view( 'juan' ,$data);
	}
	
	/**
	 * 
	 * 通告
	 */
	public function tonggao()
	{
		$this->load->model( 'tonggao_mdl', 'tonggao' );
		$data['list'] = $this->tonggao->getTonggaoList( false,0,  0, '' ,'tonggao');
		
		$this->load->view( 'tonggao' ,$data);
	}
	
	public function fawu()
	{
		$data['about'] = $this->helper->getByTag( 'fawu' );
	
		$this->load->view( 'fawu' ,$data);
	}
	
	/**
	 * 
	 * 合作
	 */
	public function hezuo()
	{
		$data['about'] = $this->helper->getByTag( 'hezuo' );
	
		$this->load->view( 'hezuo' ,$data);
	}
	
	/**
	 * 
	 * 帮助
	 */
	public function bangzhu()
	{
		$data['about'] = $this->helper->getByTag( 'bangzhu' );
	
		$this->load->view( 'bangzhu' ,$data);
	}
	
	
	
	public function views()
	{
		$this->load->model( 'tonggao_mdl', 'tonggao' );
		$id = intval( $this->uri->rsegment(3) );
		$info = $this->tonggao->getTonggaoById($id);
		
		$data['info'] = $info;
		
		$this->load->view( 'tonggao_view', $data );
	}
}